import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

// 创建催款记录
export const createDunningRecord = (data: object) => {
  console.log("创建催款记录参数:", data);
  return http.request<any>("post", baseUrlApi("order/rj/dunning/create"), {
    data
  });
};

// 查询催款记录
export const queryDunningRecord = (data: object) => {
  return http.request<any>("post", baseUrlApi("order/rj/dunning/list"), {
    data
  });
};

// 更新催款记录
export const updateDunningRecord = (data: object) => {
  return http.request<any>("post", baseUrlApi("order/rj/dunning/update"), {
    data
  });
};
